#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from common.readelement import Element
from page_object.webpage import WebPage

defulltime = Element('jzsz/mp/delivery_fulltimejob')


class DelivertFullTimeJobPage(WebPage):
    """投递全职类"""
    def click_job(self):
        """打开工作tab"""
        self.is_click(defulltime['工作'])

    def click_newest(self):
        """打开最新列表"""
        self.is_click(defulltime['最新'])

    def open_detailpage(self):
        """打开详情页"""
        self.is_click(defulltime['详情'])

    def delivery_job(self):
        """投递简历"""
        self.is_click(defulltime['投递简历'])

    def confirm(self):
        """确认"""
        self.is_click(defulltime['确认'])

    def delivery_result(self):
        """投递结果"""
        self.is_exists(defulltime['七日不可再投递'])

    def click_back(self):
        """返回列表"""
        self.is_click(defulltime['返回'])


